import request from '@/utils/request'

export const api = {
  roleList: 'web/staff/area_roles',
  staffList: 'web/staff/area_staff',
  staffRoles: 'web/staff/staff_roles',
  setStaffRoles: 'web/staff/staff_roles',
}

export function getRoleList (params = {}) {
  return request({
    url: api.roleList,
    method: 'get',
    params
  })
}

export function getStaffList (params = {}) {
  return request({
    url: api.staffList,
    method: 'get',
    params
  })
}

export function getStaffRoles (params = {}) {
  return request({
    url: api.staffRoles,
    method: 'get',
    params
  })
}
export function setStaffRoles (params = {}) {
  console.log(params)
  return request({
    url: api.setStaffRoles,
    method: 'post',
    params
  })
}

